<template>
  <div>
    这是news
    <ul>
      <li v-for="item in list" :key="item.id">{{ item.imageName }}</li>
    </ul>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        list: []
      }
    },
    async fetch() {
      console.log('components fetch')
      let res = await this.$axios.get('http://testapi.xuexiluxian.cn/api/slider/getSliders')
      let list = res.data.data.list
      this.list = list 
    }
  }
</script>
